package com.example.mybatisxmltest.demos.web.service.impl;

import com.example.mybatisxmltest.demos.web.mapper.UserMapper;
import com.example.mybatisxmltest.demos.web.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IuserServiceImpl implements com.example.mybatisxmltest.demos.web.service.IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUser(String id) {
        return userMapper.getUser(id);
    }
    @Override
//    public User getUser3() {
    public User getUser3(Integer id,String  username,String  phone) {
//        return userMapper.getUser3(1,"张三","北京");
//        return userMapper.getUser3();
        return userMapper.getUser3(id,username,phone);
    }
}
